package com.md.mod.service;

import com.md.mod.bean.SysUser;
import com.md.mod.utils.JSONResult;
import org.apache.ibatis.session.RowBounds;

import java.util.List;

public interface UserService {

    JSONResult selectUserListPage(SysUser user, Integer page, Integer pageSize);

    public void saveUser(SysUser user) throws Exception;

    public SysUser selectOne(SysUser user);

    int deleteByPrimaryKey(Object key) ;

    int delete(SysUser record) ;

    int insert(SysUser record) ;

    int insertSelective(SysUser record);

    boolean existsWithPrimaryKey(Object key) ;

    List<SysUser> selectAll() ;

    SysUser selectByPrimaryKey(Object key);

    int selectCount(SysUser record) ;

    List<SysUser> select(SysUser record) ;

    int updateByPrimaryKey(SysUser record);

    int updateByPrimaryKeySelective(SysUser record);

    int deleteByExample(Object example);

    List<SysUser> selectByExample(Object example) ;

    int selectCountByExample(Object example);

    SysUser selectOneByExample(Object example) ;

    int updateByExample(SysUser record, Object example) ;

    int updateByExampleSelective(SysUser record, Object example) ;

    List<SysUser> selectByExampleAndRowBounds(Object example, RowBounds rowBounds) ;

    List<SysUser> selectByRowBounds(SysUser record, RowBounds rowBounds);

    int insertList(List<SysUser> recordList);

    int insertUseGeneratedKeys(SysUser record);
}
